//!Includes

#include "ReportTask.h"

//!Global Functions


namespace tasks
{

/**
 * class ReportTask
 *
 *
 * Autor:David Bevilaqua
 *
 *
 * DESCRIPTION:
 *
 */

//!Constructors/Destructors

/**
 * Empty Constructor
 */
ReportTask::ReportTask ( )
{

}

/**
 * Empty Destructor
 */
ReportTask::~ReportTask ( )
{

}

//!Public Accessor Methods
void ReportTask::SetCount (int val)
{
count=val;
}


//!Public Methods
std::vector <CvPoint> ReportTask::GetSignal( )
{
return m_VectorPoint;
}

void ReportTask::SetSignal(std::vector <CvPoint> vector)
{
m_VectorPoint=vector;
}

void ReportTask::CreateSignal(std::string string)
{
double x[count];
double y[count];
for(int i=0;i<count;i++)
{
x[i]=m_VectorPoint.back().x;
y[i]=m_VectorPoint.back().y;
m_VectorPoint.pop_back();
}
m_DriverPlot.m_pPointsX=x;
m_DriverPlot.m_pPointsY=y;
m_DriverPlot.m_MaxPoints=count;
m_DriverPlot.PlotXY(string);
}

void ReportTask::PushSignal(CvPoint point)
{
m_VectorPoint.push_back(point);
}

void ReportTask::ClearPoints(std::string string)
{
m_VectorPoint.clear();
}

void ReportTask::Execute()
{
sleep(1);
m_DriverPlot.ResetPlot();
m_VectorPoint.clear();
}

//!Protected Methods



//!Private Methods




/**
 * Starts all the attributes of
 * the ReportTask
 */



}
